package com.wens.monitor.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
public class Processdata {
	private int id;
	private Date createDate = new Date();
	private double CPU;
	private int usedMenory;
	private int diskRead;
	private int diskWrite;
	private int networkSend;
	private int networkRecieve;
	private Monitor monitor;
	
	public double getCPU() {
		return CPU;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public int getDiskRead() {
		return diskRead;
	}
	public int getDiskWrite() {
		return diskWrite;
	}
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	@ManyToOne
	public Monitor getMonitor() {
		return monitor;
	}
	public int getNetworkRecieve() {
		return networkRecieve;
	}
	public int getNetworkSend() {
		return networkSend;
	}
	public int getUsedMenory() {
		return usedMenory;
	}
	public void setCPU(double cPU) {
		CPU = cPU;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public void setDiskRead(int diskRead) {
		this.diskRead = diskRead;
	}
	public void setDiskWrite(int diskWrite) {
		this.diskWrite = diskWrite;
	}
	public void setId(int id) {
		this.id = id;
	}
	public void setMonitor(Monitor monitor) {
		this.monitor = monitor;
	}
	public void setNetworkRecieve(int networkRecieve) {
		this.networkRecieve = networkRecieve;
	}
	public void setNetworkSend(int networkSend) {
		this.networkSend = networkSend;
	}
	public void setUsedMenory(int usedMenory) {
		this.usedMenory = usedMenory;
	}
}
